using System;
using System.ComponentModel.DataAnnotations;

namespace CR.Application.DTOs
{
    /// <summary>
    /// 企业照片DTO
    /// </summary>
    public class EnterprisePhotoDTO
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public Guid Id { get; set; }
        
        /// <summary>
        /// 企业ID
        /// </summary>
        public Guid EnterpriseId { get; set; }
        
        /// <summary>
        /// 照片URL
        /// </summary>
        [Required(ErrorMessage = "照片URL不能为空")]
        [StringLength(255, ErrorMessage = "照片URL长度不能超过255个字符")]
        public string PhotoUrl { get; set; }
        
        /// <summary>
        /// 照片描述
        /// </summary>
        [StringLength(500, ErrorMessage = "照片描述长度不能超过500个字符")]
        public string Description { get; set; }
        
        /// <summary>
        /// 照片类型
        /// </summary>
        [StringLength(50, ErrorMessage = "照片类型长度不能超过50个字符")]
        public string PhotoType { get; set; }
        
        /// <summary>
        /// 排序序号
        /// </summary>
        public int OrderNum { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedAt { get; set; }
    }
} 